cmake_minimum_required(VERSION 3.4.1)

# 设置生成的so动态库最后输出的路径
# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../jniLibs/${ANDROID_ABI})

add_library( # Sets the name of the library.
        MHHelper
        # Sets the library as a shared library.
        SHARED
        # Provides a relative path to your source file(s).
        MHHelper.cpp)

find_library( # Defines the name of the path variable that stores the
        # location of the NDK library.
        log-lib

        # Specifies the name of the NDK library that
        # CMake needs to locate.
        log)


target_link_libraries( # Specifies the target library.
        MHHelper

        # Links the log library to the target library.
        ${log-lib})